package com.zhan.easyexcelnew.util;

public class Constants implements java.io.Serializable {
    private static final long serialVersionUID = -2773126348382949583L;

    public static final int DEL_VALUE = 1;
    public static final int NOT_DEL_VALUE = 0;
    public static final int DEFAULT_EXCEL_CELL_WIDTH = 15;

    public static final class ReturnValue {
        public static final String SUCCESS_CODE = "200";
        public static final String SUCCESS_MSG = "success";
        public static final String ERROR_CODE = "500";
    }

    public static final class AuthenticationMethod {
        public static final String AUTH_TYPE = "authType";
    }

    public static final class Login {
        public static final Integer PASSWORD_NOT_CHANGE = 0;
        public static final Integer PASSWORD_CHANGED = 1;
    }

    public static final class BaseMode {
        public static final String createTime = "createTime";
        public static final String create_time = "create_time";
        public static final String deleteTime = "deleteTime";
        public static final String delete_time = "delete_time";
        public static final String update_time = "update_time";
        public static final String updateTime = "updateTime";
        public static final String isDelete = "isDelete";
        public static final String is_delete = "is_delete";
        public static final String createUserId = "createUserId";
        public static final String create_user_id = "create_user_id";
        public static final String updateUserId = "updateUserId";
        public static final String update_user_d = "update_user_id";
        public static final String deleteUserId = "deleteUserId";
        public static final String delete_user_d = "delete_user_id";
    }

    public static final class CreateType {
        /*页面提交*/
        public static final Integer FORM_COMMIT = 0;
        /*导入数据*/
        public static final Integer IMPORT = 1;
    }

    public static final class CacheKey {
        public static final String VIE_PEOPLE_NUM_KEY = "VIE_PEOPLE_NUM_KEY";
    }

    public static final class ServiceName {
        public static final String USER_MANAGE = "user-manage";
        public static final String SCHEDULING = "s-scheduling";
        public static final String MALL_MANAGEMENT = "mall-management";
    }

    public static final class SysMenuType {
        public static final Integer WEB = 0;
        public static final Integer PHONE = 1;
        public static final Integer WEB_AND_PHONE = 2;
    }

    public static final class QueueName {
        public static final String SMS = "sms_queue";
        public static final String EMAIL = "email_queue";
        public static final String SYS_LOG = "sys_log_queue";
        public static final String MESSAGE = "message_queue";
    }

    public static final class OperationType {
        public static final Integer INSERT = 1;
        public static final Integer DELETE = 2;
        public static final Integer UPDATE = 3;
        public static final Integer LOGIN = 4;
    }

    public static final class MessageType {
        /**
         * 抢班大厅
         */
        public static final Integer ROB_CLASS_HALL = 1;
        /**
         * 我的班表
         */
        public static final Integer MY_CLASS_RECORD = 2;
        /**
         * 买卖班
         */
        public static final Integer BUY_SALE_CLASS = 3;
        /**
         * 换班
         */
        public static final Integer EXCHANGE_CLASS = 4;
        /**
         * 工作申请
         */
        public static final Integer WORK_APPLY = 5;
        /**
         * 抢班统计
         */
        public static final Integer ROB_CLASS_STATISTICS = 6;
        /**
         * 休假审批
         */
        public static final Integer LEAVE_APPROVE = 7;
    }

    /**
     * 消息跳转类型
     *
     * @author baishangbing
     * @date 2019/12/20 15:23
     */
    public static final class MessageSkipType {
        /**
         * 抢班大厅
         */
        public static final Integer ROB_CLASS_HALL = 1;
        /**
         * 抢班详情
         */
        public static final Integer ROB_CLASS_DETAIL = 2;
        /**
         * 抢班记录
         */
        public static final Integer ROB_CLASS_RECORD = 3;
        /**
         * 我的班表
         */
        public static final Integer MY_CLASS_RECORD = 4;
        /**
         * 买卖班记录
         */
        public static final Integer BUY_SALE_CLASS = 5;
        /**
         * 工作申请记录
         */
        public static final Integer WORK_APPLY_RECORD = 6;
        /**
         * 换班详情
         */
        public static final Integer EXCHANGE_CLASS_DETAIL = 7;
        /**
         * 换班记录
         */
        public static final Integer EXCHANGE_CLASS_RECORD = 8;
        /**
         * 请假详情
         */
        public static final Integer LEAVE_DETAIL = 9;
        /**
         * 审批详情
         */
        public static final Integer APPROVE_DETAIL = 10;

    }

    public static final class ApproveState {
        /**
         * 待审批
         */
        public static final Integer PENDING = 1;
        /**
         * 同意
         */
        public static final Integer AGREE = 2;
        /**
         * 拒绝
         */
        public static final Integer REJECT = 3;
        /**
         * 不用审批（未开始）
         */
        public static final Integer NEED_NOT = 4;
        /**
         * 其他
         */
        public static final Integer OTHERS = 99;
        /**
         * 审批中
         */
        public static final Integer PROCESSED = 1;
    }

    public static final class QrLogin {
        public static final String CACHE_NAME = "qrlogin_cache_key";
    }

    public static final class RedisTopic {
        public static final String SYS_USER = "sysUser";
        public static final String SYS_DEPARTMENT = "sysDepartment";
        public static final String UPDATE_ADHERENCE = "updateAdherence";
    }
}
